package cn.enzo.generate;

import java.io.File;

import org.junit.Test;

import cn.enzo.utils.utils.GenerateFile.AbstractGenerateFile;
import cn.enzo.utils.utils.GenerateFile.GenerateFile;
import cn.enzo.yun.domain.Sale;
import cn.enzo.yun.domain.User;

public class CreateNewFile {

	String basepath = System.getProperty("user.dir")+ File.separator + "src" + File.separator + "main" + File.separator + "java" + File.separator ;
	
	@Test
	public void createDao(){
		GenerateFile<Object> abstractGenerateFile = new AbstractGenerateFile<>();
		abstractGenerateFile.createDao(new User());
		
	}
	
	
	@Test 
	public void createMapper(){
		AbstractGenerateFile<Object> abstractGenerateFile = new AbstractGenerateFile<>();
		abstractGenerateFile.createMapper(new Sale());
	}
	
	@Test 
	public void createService(){
		AbstractGenerateFile<Object> abstractGenerateFile = new AbstractGenerateFile<>();
		abstractGenerateFile.createService(new User());
	}
	
	@Test 
	public void createServiceImpl(){
		AbstractGenerateFile<Object> abstractGenerateFile = new AbstractGenerateFile<>();
		abstractGenerateFile.createServiceImpl(new User());
		
	}
}
